Nevron Open Vision Documentation
Nevron.Nov.Dom Namespace / NDocumentFormatRegistry<TDocumentFormat> Class / GetFromExtensionAndHeader Method / GetFromExtensionAndHeader(String,Byte[],Boolean) Method
File extension without the dot, for example "txt", "docx" and so on.
File header. Can be null.
Indicates whether the file is for reading or for writing.


In This Topic
    GetFromExtensionAndHeader(String,Byte[],Boolean) Method
    In This Topic
    Gets a document format from the specified extension and header.
    Syntax
    'Declaration
     
    
    Public Overloads Function GetFromExtensionAndHeader( _
       ByVal fileExtension As System.String, _
       ByVal header() As System.Byte, _
       ByVal forReading As System.Boolean _
    ) As TDocumentFormat
    'Usage
     
    
    Dim instance As NDocumentFormatRegistry(Of TDocumentFormat)
    Dim fileExtension As System.String
    Dim header() As System.Byte
    Dim forReading As System.Boolean
    Dim value As TDocumentFormat
     
    value = instance.GetFromExtensionAndHeader(fileExtension, header, forReading)
    public TDocumentFormat GetFromExtensionAndHeader( 
       System.string fileExtension,
       System.byte[] header,
       System.bool forReading
    )

    Parameters

    fileExtension
    File extension without the dot, for example "txt", "docx" and so on.
    header
    File header. Can be null.
    forReading
    Indicates whether the file is for reading or for writing.
    Requirements

    Target Platforms: Windows 11, Windows 10, Windows 7, Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later)

    See Also